module top_module( 
    input [99:0] in,
    output [98:0] out_both,
    output [99:1] out_any,
    output [99:0] out_different );

    integer	i;
    
    always @(*) begin
        for(i = 0; i < 100; i=i+1) begin
            if(i < 99) begin
                out_both[98-i] = in[99-i] && in[98-i];
                out_any[99-i] = in[99-i] || in[98-i]; 
            end
            if(i == 99) begin
                out_different[99] = in[99] ^ in[0];
            end
            else begin
                out_different[98-i] = in[99-i] ^ in[98-i]; 
            end
        end
    end
    
endmodule
